<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCClientCallback Interface Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback.html">JCClientCallback</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCClientCallback Interface Reference<div class="ingroups"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html">登录模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Inherited by com.juphoon.cloud.JCCallImpl, com.juphoon.cloud.JCMediaChannelImpl, com.juphoon.cloud.JCMediaDeviceImpl, and com.juphoon.cloud.JCPushImpl.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a140787dfdb6fe710bb346af98c84a88f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback.html#a140787dfdb6fe710bb346af98c84a88f">onLogin</a> (boolean result, @JCClient.ClientReason int reason)</td></tr>
<tr class="separator:a140787dfdb6fe710bb346af98c84a88f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72ef9659ee44469d1925b03700a9fc98"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback.html#a72ef9659ee44469d1925b03700a9fc98">onLogout</a> (@JCClient.ClientReason int reason)</td></tr>
<tr class="separator:a72ef9659ee44469d1925b03700a9fc98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28cc841ad49d3e41884d7079baaa8a77"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback.html#a28cc841ad49d3e41884d7079baaa8a77">onClientStateChange</a> (@JCClient.ClientState int state, @JCClient.ClientState int oldState)</td></tr>
<tr class="separator:a28cc841ad49d3e41884d7079baaa8a77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="interfacecom_1_1juphoon_1_1cloud_1_1_j_c_client_callback.html">JCClientCallback</a> 回调，用于回调登录相关事件 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a140787dfdb6fe710bb346af98c84a88f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a140787dfdb6fe710bb346af98c84a88f">&#9670;&nbsp;</a></span>onLogin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCClientCallback.onLogin </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@JCClient.ClientReason int&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>登录结果回调</p>
<p>在调用 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a50016ca73cd0dacf5c26aafc5839260f">login</a> 方法成功后会收到此回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>登录是否成功<ul>
<li>true：登录成功</li>
<li>false：登录失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>登录失败原因，当 result 为 false 时该值有效。参见：<a class="el" href="group__error.html#gaac75ed688284ccfa03a536338e694b10">JCClient 错误码</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a72ef9659ee44469d1925b03700a9fc98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72ef9659ee44469d1925b03700a9fc98">&#9670;&nbsp;</a></span>onLogout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCClientCallback.onLogout </td>
          <td>(</td>
          <td class="paramtype">@JCClient.ClientReason int&#160;</td>
          <td class="paramname"><em>reason</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>登出回调</p>
<p>在调用 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#aba212cd8810310f5cc43303c14501b7a">logout</a> 方法成功后会收到此回调</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reason</td><td>登出原因，参见：<a class="el" href="group__error.html#gaac75ed688284ccfa03a536338e694b10">JCClient 错误码</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a28cc841ad49d3e41884d7079baaa8a77"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28cc841ad49d3e41884d7079baaa8a77">&#9670;&nbsp;</a></span>onClientStateChange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void com.juphoon.cloud.JCClientCallback.onClientStateChange </td>
          <td>(</td>
          <td class="paramtype">@JCClient.ClientState int&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">@JCClient.ClientState int&#160;</td>
          <td class="paramname"><em>oldState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>登录状态变化回调</p>
<p>在用户的登录状态发生改变时会收到此回调，登录状态：</p><ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a9265e400dcb439ba508abd30174c380d">STATE_NOT_INIT</a>: 未初始化</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a28e87d075d1b1728a2a422dd7a39358b">STATE_IDLE</a>: 未登录</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a7adec5ed69976533290153b031661897">STATE_LOGINING</a>: 登录中</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a5d450770754ef140640914dff0ad360b">STATE_LOGINED</a>: 登录成功</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_client.html#a6d271dedddd351f149e56f02e234147d">STATE_LOGOUTING</a>: 登出中</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>当前状态值 </td></tr>
    <tr><td class="paramname">oldState</td><td>之前状态值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this interface was generated from the following file:<ul>
<li>cloud/src/main/common/com/juphoon/cloud/JCClientCallback.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
